# See LICENSE file for copyright and license details.

include ../config.mk

LIB = ../libfn85.a
TOOLS = fn85_hex

all: $(TOOLS)

fn85_hex: fn85_hex.c $(LIB)
	@$(CC) $(CFLAGS) -o fn85_hex fn85_hex.c $(LIB)

install: $(TOOLS)
	@echo @ install tools to $(PREFIX)
	@mkdir -p $(PREFIX)/bin
	@cp $(TOOLS) $(PREFIX)/bin/

uninstall:
	@echo @ uninstall tools from $(PREFIX)
	@(cd $(PREFIX)/bin && rm -f $(TOOLS))

clean:
	@rm -f $(TOOLS)
